﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using IntraVision.Web;

namespace Model
{
    public partial class NotarialAction
    {
        public bool IsRoot
        {
            get { return ParentId == null; }
        }

        public int Level
        {
            get { return Path.Count(c => c == '|') - 1; }
        }
    }
}